<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<html>
<head>
<title>纳税人需求智能提示</title>
<SCRIPT type="text/javascript">
<!--
	var setting = {
		callback : {
			beforeClick : beforeClick
		},
	};

	var zNodes = [ {
		name : "纳税人需求智能提示",
		open : true,
		children : [ {
			name : "不遵从风险提示",
			open : true,
			children : [ {
				name : "按期申报风险提醒",
				ZBKEY : "aj"
			}, {
				name : "申报时间提醒预警",
				ZBKEY : "aj"
			}, {
				name : "财务报表按期报送提醒",
				ZBKEY : "aj"
			}, {
				name : "欠税风险提醒",
				ZBKEY : "aj"
			}, {
				name : "房产转让、出租涉税事项提醒",
				ZBKEY : "aj"
			}, {
				name : "纳税不遵从风险预测及提醒",
				ZBKEY : "aj"
			} ]
		}, {
			name : "“猜您需要”政策推送及事项办理提醒",
			open : true,
			children : [ {
				name : "涉税事项办理提醒",
				ZBKEY : "ss"
			}, {
				name : "税收新政策提示",
				ZBKEY : "ss"
			}, {
				name : "根据纳税人咨询、查询记录",
				ZBKEY : "ss"
			} ]
		}, {
			name : "税务机关宣传咨询重点提示",
			open : true,
			children : [ {
				name : "宣传热点预测",
				ZBKEY : "xc"
			}, {
				name : "分析咨询热点",
				ZBKEY : "xc"
			} ]
		} ]
	}

	];

	$(document).ready(function() {
		$.fn.zTree.init($("#treeDemo"), setting, zNodes);
	});

	//左边树节点的单击响应方法
	function beforeClick(treeId, treeNode, clickFlag) {
		if (treeNode.ZBKEY == undefined)
			return;
		var params = {};
		params["ZBKEY"] = treeNode.ZBKEY;
		$.ajax({
			type : 'post',
			cache : false,
			dataType : 'json',
			async : false,
			url : '${ctx}/intelligent/sourcelist.do',
			data : params,
			success : function(resp, options) {
				if (resp.data) {
					var msg = '江苏省纳税人总数';
					var other = '其中';
					var data = resp.data;
					var total = 0;
					for (var i = 0; i < data.length; i++) {
						total += data[i].SUM;
						other += data[i].GSD + data[i].SUM + ",";
					}
					if (total > 0) {
						other = other.substring(0, other.length - 1);
					}
					msg += total + ",";
					$(".warn_source_total").text(msg + other);
				}
			}
		});
	}

	//导出数据
	function exportData() {
		window.open('${ctx}/intelligent/export.do');
	}
//-->
</SCRIPT>
</head>
<body>
	<div class="content-wrapper">
		<h3>纳税人需求智能提示</h3>
		<div class="row">
			<div class="col-sm-3">
				<ul id="treeDemo" class="ztree"></ul>
			</div>
			<div class="col-sm-9">
				<div class="col-sm-8">
					<div id="warn_source_total"
						class="alert alert-success warn_source_total" role="alert">江苏省纳税人总数，其中...</div>
				</div>
				<div class="col-sm-4">
					<button type="button" class="btn btn-success"
						onclick="javascript:exportData()">
						<em class="fa fa-arrow-circle-up"></em>&nbsp;导&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;出
					</button>
				</div>

				<div class="col-sm-8">
					<div class="alert alert-info" role="alert">共导入江苏省纳税人数据150，其中南京市40，苏州市30，无锡市30，泰州市20，
						盐城市10，扬州市10，徐州市10...</div>
				</div>
				<div class="col-sm-4">
					<div>
						<button type="button" class="btn btn-primary">
							<em class="fa fa-arrow-circle-o-down"></em>&nbsp;导&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;入
						</button>
						&nbsp;&nbsp;
						<button type="button" class="btn btn-danger">
							<em class="fa fa-cloud-download"></em>&nbsp;下载模板
						</button>
					</div>
				</div>

				<div class="col-sm-12 jumbotron">
					<div class="col-sm-6 row">
						<div class="input-group">
							<span class="input-group-addon">推送渠道</span> <select
								class="form-control">
								<option>网上办税系统推送</option>
								<option>短信推送</option>
							</select>
						</div>
					</div>
					<div class="col-sm-6 row pull-right">
						<div class="input-group">
							<span class="input-group-addon">推送时间</span> <input type="text"
								class="form-control" value="2016-01-15 12:00:00">
						</div>
					</div>
					<div class="col-sm-12 " style="padding: 10px 0px 10px 0px;">
						<div class="input-group">
							<span class="input-group-addon">推送标题</span> <input type="text"
								class="form-control" value="">
						</div>
					</div>
					<div class="col-sm-12 " style="padding: 0px 0px 10px 0px;">
						<div class="input-group">
							<span class="input-group-addon">推送内容</span>
							<div data-role="editor-toolbar" data-target="#editor"
								class="btn-toolbar btn-editor">
								<div class="btn-group dropdown">
									<a data-toggle="dropdown" title="Font" class="btn btn-default">
										<em class="fa fa-font"></em><b class="caret"></b>
									</a>
									<ul class="dropdown-menu">
										<li><a href="" data-edit="fontName Arial"
											style="font-family: 'Arial'">Arial</a></li>
										<li><a href="" data-edit="fontName Sans"
											style="font-family: 'Sans'">Sans</a></li>
										<li><a href="" data-edit="fontName Serif"
											style="font-family: 'Serif'">Serif</a></li>
									</ul>
								</div>
								<div class="btn-group dropdown">
									<a data-toggle="dropdown" title="Font Size"
										class="btn btn-default"> <em class="fa fa-text-height"></em>&nbsp;<b
										class="caret"></b>
									</a>
									<ul class="dropdown-menu">
										<li><a href="" data-edit="fontSize 5"
											style="font-size: 24px">Huge</a></li>
										<li><a href="" data-edit="fontSize 3"
											style="font-size: 18px">Normal</a></li>
										<li><a href="" data-edit="fontSize 1"
											style="font-size: 14px">Small</a></li>
									</ul>
								</div>
								<div class="btn-group">
									<a data-edit="bold" data-toggle="tooltip"
										title="Bold (Ctrl/Cmd+B)" class="btn btn-default"> <em
										class="fa fa-bold"></em>
									</a> <a data-edit="italic" data-toggle="tooltip"
										title="Italic (Ctrl/Cmd+I)" class="btn btn-default"> <em
										class="fa fa-italic"></em>
									</a> <a data-edit="strikethrough" data-toggle="tooltip"
										title="Strikethrough" class="btn btn-default"> <em
										class="fa fa-strikethrough"></em>
									</a> <a data-edit="underline" data-toggle="tooltip"
										title="Underline (Ctrl/Cmd+U)" class="btn btn-default"> <em
										class="fa fa-underline"></em>
									</a>
								</div>
								<div class="btn-group">
									<a data-edit="insertunorderedlist" data-toggle="tooltip"
										title="Bullet list" class="btn btn-default"> <em
										class="fa fa-list-ul"></em>
									</a> <a data-edit="insertorderedlist" data-toggle="tooltip"
										title="Number list" class="btn btn-default"> <em
										class="fa fa-list-ol"></em>
									</a> <a data-edit="outdent" data-toggle="tooltip"
										title="Reduce indent (Shift+Tab)" class="btn btn-default">
										<em class="fa fa-dedent"></em>
									</a> <a data-edit="indent" data-toggle="tooltip"
										title="Indent (Tab)" class="btn btn-default"> <em
										class="fa fa-indent"></em>
									</a>
								</div>
								<div class="btn-group">
									<a data-edit="justifyleft" data-toggle="tooltip"
										title="Align Left (Ctrl/Cmd+L)" class="btn btn-default"> <em
										class="fa fa-align-left"></em>
									</a> <a data-edit="justifycenter" data-toggle="tooltip"
										title="Center (Ctrl/Cmd+E)" class="btn btn-default"> <em
										class="fa fa-align-center"></em>
									</a> <a data-edit="justifyright" data-toggle="tooltip"
										title="Align Right (Ctrl/Cmd+R)" class="btn btn-default">
										<em class="fa fa-align-right"></em>
									</a> <a data-edit="justifyfull" data-toggle="tooltip"
										title="Justify (Ctrl/Cmd+J)" class="btn btn-default"> <em
										class="fa fa-align-justify"></em>
									</a>
								</div>
								<div class="btn-group dropdown">
									<a data-toggle="dropdown" title="Hyperlink"
										class="btn btn-default"> <em class="fa fa-link"></em>
									</a>
									<div class="dropdown-menu">
										<div class="input-group ml-xs mr-xs">
											<input id="LinkInput" placeholder="URL" type="text"
												data-edit="createLink" class="form-control input-sm">
											<div class="input-group-btn">
												<button type="button" class="btn btn-sm btn-default">Add</button>
											</div>
										</div>
									</div>
									<a data-edit="unlink" data-toggle="tooltip"
										title="Remove Hyperlink" class="btn btn-default"> <em
										class="fa fa-cut"></em>
									</a>
								</div>
								<div class="btn-group">
									<a id="pictureBtn" data-toggle="tooltip"
										title="Insert picture (or just drag &amp; drop)"
										class="btn btn-default"> <em class="fa fa-picture-o"></em>
									</a> <input type="file" data-edit="insertImage"
										style="position: absolute; opacity: 0; width: 41px; height: 34px">
								</div>

							</div>
							<div style="overflow: scroll; height: 250px; max-height: 250px"
								class="form-control wysiwyg mt-lg"></div>
						</div>


					</div>



					<div class="col-sm-12 " style="padding: 0px 0px 10px 0px;">
						<div class="input-group pull-right">
							<button type="button" class="btn btn-primary">
								<em class="fa fa-check"></em>&nbsp;推送
							</button>
							<button type="button" class="btn btn-green">
								<em class="fa fa-save"></em>&nbsp;暂存
							</button>
						</div>
					</div>
				</div>
			</div>

		</div>
	</div>



</body>
</html>
